package
{
	import com.cambright.IDispose;
	
	import flash.display.Sprite;
	import flash.display.StageAlign;
	import flash.display.StageScaleMode;
	import flash.events.Event;
	import flash.utils.clearInterval;
	import flash.utils.setInterval;
	
	import huachenxing.mimi520.skin.Panel;
	
	[SWF(frameRate="30", width="400", height="350")]
	public class test extends Sprite
	{
		IDispose;
		
		private var intervalID:int;
		
		public function test()
		{
			stage.scaleMode = StageScaleMode.NO_SCALE;
			stage.align = StageAlign.TOP_LEFT;
			
			loaderInfo.addEventListener(Event.COMPLETE, oncomplete);
		}
		
		private function oncomplete(event:Event):void
		{
			intervalID = setInterval(main, 1000);
		}
		
		private function main():void
		{
			clearInterval(intervalID);
			
			var panel:Panel = new Panel();
			panel.x = 100;
			panel.y = 100;
			panel.width = 200;
			panel.height = 150;
			addChild(panel);
			
			addEventListener(Event.ENTER_FRAME, onenter);
			
			var mo:Mo = new Mo();
			mo.abc = 3;
			mo.aaa =7;
			
			trace(mo.aaa);
		}
		
		private function onenter(event:Event):void
		{
			stage.invalidate();
		}
	}
}